package deployr.core;

import deployr.domain.*;

public class ExportProjects {
	private final StringBuilder stringBuilder = new StringBuilder();

	public ExportProjects(final Iterable<IProject> projects) {
		for (final IProject project : projects) {
			append(new ExportProject(project).toString());
			endLine();
		}
	}

	private void endLine() {
		append("\n");
	}

	private StringBuilder append(final String string) {
		return stringBuilder.append(string);
	}

	@Override
	public String toString() {
		return stringBuilder.toString();
	}

}
